﻿using System;
using System.Collections.Generic;
using System.Text;


namespace Ecreate.Data
{

    [Serializable]
    public class ParamField
    {
        private string m_ParamName;
        private object m_ParamValue;

        public ParamField(string strParamName, object objParamValue)
        {
            if (PersistenceProperty.DatabaseType == DataBaseType.MSSQLServer)
            {
                this.m_ParamName = strParamName.Replace(":", "@");
                this.m_ParamValue = objParamValue;
            }
            else
            {
                this.m_ParamName = strParamName.Replace("@", ":");
                this.m_ParamValue = objParamValue;
            }
        }

        public string ParamName
        {
            get
            {
                return this.m_ParamName;
            }
        }

        public object ParamValue
        {
            get
            {
                return this.m_ParamValue;
            }
        }
    }
}
